using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;

public class Global : System.Web.HttpApplication
{

    protected void Application_Start(object sender, EventArgs e)
    {
        //log4net.Config.XmlConfigurator.Configure();
        string VirtualPath = System.Configuration.ConfigurationManager.AppSettings["log4net.config"];
        string PhysicalPath = System.Web.HttpContext.Current.Request.MapPath(VirtualPath);
        log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(PhysicalPath));
    }

    protected void Application_End(object sender, EventArgs e)
    {

    }
}
